Adds better exception handling for rails 4 -- #120