Fix process / timeouts

The calls to `setTimeout` need to be `unref`-ed, otherwise they'll hold the process open.