release the lock in case of exception being thrown from basicOperation?