added sleep in catch as well