Got working error handling within the availability check to exit the correct loops, more trickier keywords.