Fix inShutdown