Fix bug when the initial namespace cannot be found and null is returned
Remove the RMC object on server shutdown
Attach shutdown handler to LMSServer