remove the sleep from normal path and reduced sleep to 1 second on error paths