Ignore exception when removing ShutdownHook on shutdown