Increasing the timeout period for virtual machines with poor connections