commit error handling