'This is called just after the portal has finished syncing back data to the server
after reconnecting.'

def at_post_portal_sync(self):

    mode = self.getset_restart_mode()
    from evennia.scripts.monitorhandler import MONITOR_HANDLER
    MONITOR_HANDLER.restore((mode == 'reload'))
    from evennia.scripts.tickerhandler import TICKER_HANDLER
    TICKER_HANDLER.restore((mode == 'reload'))
    ScriptDB.objects.validate(init_mode=mode)
    ServerConfig.objects.conf('server_restart_mode', delete=True)
