Prevent shutDown() from being called more than once.