removed excessive sleeping after error