Haha :) I'm still bad at describing things in english.

Perhaps you should try using `process.on('exit',...)` here?