properly assign 0 to handlers on Windows KillWindow