Fix remote host has disconnected problem