Use thread instead of multiprocessing to manage windows service