Added try statement in scrap logging.