Handle exception in update operations