really crappy graceful restarting that needs less race conditions