3.2.5.15 Closing the Connection
To gracefully close a connection, the server MUST do the following:
Delete all resources by using the MILCMD_CHANNEL_DELETERESOURCE (section 2.2.7.7) message.
Close the channel by using the MILCTRLCMD_CLOSECHANNEL (section 2.2.5.6) message.
Close the connection by using the MILCTRLCMD_CLOSECONNECTION (section 2.2.5.4) message.