Use subprocess.Popen.wait(timeout) for termination timeout