public override void Abort(ConnectionAbortedException abortReason) { _trace.ConnectionAborted(ConnectionId); // Try to gracefully close the socket to match libuv behavior. Shutdown(abortReason); // Cancel ProcessSends loop after calling shutdown to ensure the correct _shutdownReason gets set. Output.CancelPendingRead(); }