Detect ECONNREFUSED to CouchDB instead of silent exit

Fixes #30