catching server not available Exception