Fix halt test failing on Windows