fix requestShutdown issue