diff --git a/src/Window.js b/src/Window.js
index <HASH>..<HASH> 100644
--- a/src/Window.js
+++ b/src/Window.js
@@ -1438,5 +1438,6 @@ global.onexit = () => {
   }
   
   AudioContext.Destroy();
+  nativeWindow.destroyThreadPool();
 };
 // global.setImmediate = undefined; // need this for the TLS implementation
Call native window destroy thread pool on exit