Add a shutdown hook for when everything is done
Remove now unused and dead code

We no longer need inputunit. nettesttask was never needed