Deployer: catch IOErrors as well.

This catches socket.error (including socket.gaierror on DNS failure).