Actually support process.on('exit', fn)