add class to use for background tasks, that would otherwise block the bot.
make hooks and tasks failsafe

as long as they are used appropriately.