How to fix Error: Channel has been destroyed (cannot send on closed IPC) in Node.js | DevErrors