Exactness Characterized by Vanishing Homology