Now detects when the remote host closes the connection and emits a signal