fix shutdownmonitor

fixes shutdownmonitor hang on rogue threads