clean up ServerManager & preferences