changing setAutoShutdown to return previous value