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

We no longer need inputunit. nettesttask was never needed
Remove unused imports inside of ooni, oonicli and runner
Validate that the collector command line option