0.9.12 nodaemon backport

We run all our carbon daemons under supervisor, and not having this patch is a tremendous performance penalty as it forces us to run in --debug mode, so we backported this fix from master.

Please consider integrating it in the 0.9.x branch so we (and others) can keep up with 0.9.x releases.