now both client and scheduler are http server
now able to terminate scheduler normally (all threads quit after ctrl-C)