Stop experiment
Return socket errors properly
Return DNS errors properly
Fix memory leak