added rescue block to rake task