added a sout to the catch block
added a sout to the catch block in scraper
moved all related logic to proper try block