fixed issue with scraper not exiting when global shutdown command is issued