kill process when process handler is destroyed