Make server run in a subprocess rther than a thread so it is easier to kill