Fixed process termination on windows