Be sure to listen for errors when using http. Issue: #2