Implement stop hook

A basic stop hook that uses kill -9 with a PID stored by the start hook.
Make stop hook idempotent