add shutdown hook so I don't need to mess with PID to manage the process