Node process never exits when debugger is on

debug
nodejs

#1

When I run a node file in a Run Configuration window with debugging enabled, the process never exits automatically, even after the exit event of the process runs. I have to explicitly run process.exit. The same node file exits correctly when debugging is switched off, or when run in a terminal.