Stop trying to idle when window closed