Handled the case when site becomes unavailable.