pep-ify
ensure that connection reinit is proper in windows