resetShutdownForTesting

Resets the shutdown state for testing purposes only. This method should not be used in production code.