time.sleep() for errors