We should also call `onOutgoingError` here since ending the `proxySocket` won't trigger its error event in anyway.