Fix a bug which caused the deployer to hang forever when a Paramiko SSH channel was closed while reading for input.