Fix daemonize option crashing on windows
Fix task priority hack