Surrounded code with begin/end as it wasn't executing anything after the rescue