When backgrounding couchdb, close stdout/stderr

COUCHDB-2220
COUCHDB-1669