Use ProcessHandle in withServer to allow kill it by client code