Silly me forgot the end in the begin rescue end block