added sleep on error for multiple targets