fixed kill when running under Windows