added exception handling for job rake task