Ignore exception when shutting down.