Close console when it loses focus but it is still on screen