Writing to stderr cause the thread to die when encountering an exception.
Merge pull request #237 from tommyulfsparre/master

Don't write to stderr when daemonized