correct code for catching exceptions in rake tasks