Added HTTPException to exceptions handled by tryXTimes