Proper cleanup on failed transaction commit in MasterImpl, added more logging.