Fix timeout on windows