Refactor crawler, add rescue on socketerror