Reset the error after retrying database transaction