Перехват глобальных ошибок в NodeJS process.on('uncaughtException', (err) => { console.log(`Exception: ${err}`);});