Various cleanup
Various cleanup

Remove SIGKILL debugger
Tidy up debugging code
Factor termination logic out of stop/kill
Tweak stop(terminate)  in such a way that restart() can start from stopped state

Firehed/ProcessManager,wepay/ProcessManager,onedal88/ProcessManager