Closing a DICOM Associate Connection
When the DICOM Associate connection is no longer needed, the connection should be closed. The proper steps for closing a DICOM Associate connection are as follows:
The SCU that wishes to close the connection calls the SendReleaseRequest method. This generates a NetReceiveReleaseRequest event on the SCP.
In response to the NetReceiveReleaseRequest event, the SCP calls SendReleaseResponse method. This generates a NetReceiveReleaseResponse event on the SCU.
At this point the Close method can be called to close the connection.
Please note that while calling the SendAbort method will also close the connection (depending on the server), the method outlined above is the preferred method.