Fix unhandled error event

Ftp#getPasvSocket passes a socket to its callback.  This socket can throw an exception if the operation times out, and we need to handle the exception.