adds support for daemonizing of the bot