Move try catch
Add rubocop to ignore
Fix bugs