Remove unnecessary begin and rescue.