When trying to deploy an unreachable server, it almost freezes because the lock is held for a long time