private void OnDestroy() { if (_startedUp) { GL.IssuePluginEvent(AXRServerPlugin.Shutdown_RenderThread_Func, 0); GL.Flush(); AXRServerPlugin.Shutdown(); } NetMQ.NetMQConfig.Cleanup(false); }