Don't die when couchdb gets restarted (closes #6065)