wip to clean up server shutdown process