Use taskkill to kill the process on windows. This implementation works, requires some polishing.