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