Added a case for ping failure