Add sleeps to wait for ports to become free when testing on windows