catch socket connection errors while updating folders