changed the accept of the attempt to false when an error ocurred