Catch all exceptions in commit()