Ported err to daemonize

Ported the daemon feature to daemonize: https://github.com/gbin/err/issues/197