Cleanup for ServiceManager.