Similarly, the NodeInterprocess listener.js example is not correct. It works just because the opened handle prevents the process to close. A correct program should catch a signal (Ctrl+C, keypress, …) and to proper close/clean up. Similarly for the
Have not checked the other examples, but you should always make proper close when you do open in examples.