Add error handling to rake 'scrape' task