`mkOnClose` reacts to the 'close' signal instead of 'exit'
`mkOnClose` reacts to the 'close' signal instead of 'exit'

According to the node documentation:
“`'close'` is distinct from the 'exit' event, since multiple processes might
share the same stdio streams.”

https://nodejs.org/api/child_process.html#child_process_event_close

purescript-node/purescript-node-child-process