call sserver::stop when modules are unloaded