clean up and autosave of server state every 5 mins