Check for bad hosts at the top of the do while