I don't think this is needed, and unexpected, probably racy also -- try to remove the isShutdown flag and ignore/continue anyway