add rescue block to word.rb for heroku