close
Closes the underlying transport connection.
Called by JsonRpc.close as part of its shutdown sequence. Any exception thrown here is swallowed and logged as a warning by JsonRpc; it will not propagate to the caller.
Closing the transport should cause the remote peer to close as well, which will drain and close messageInbox naturally through the read loop.