My Node.js script does some cleanup on exit by catching various signals or the process.on(\'exit\', ...) event.
process.on(\'exit\', ...)
When I run this script in a vscode integr