Small refactor to only have one windows escaping method