Catch connection exceptions and wait them out.