Stopping the framework is very easy and can be done using the following code snippet which will stop any active listeners and close down their connections.

MLLPListenerManager.Instance.Stop();