Handle web sever being down. Retry until it succeeds