Reliably cleaning up leftover things like nc processes is surprisingly difficult in pure shell. e2e passes on the 3.x branch now.