Throw exception if commit fails