Attempt to make timeout on windows

Also, use pgkill on other systems, which should take care of processes
launched with shell=True