move threading management to bot (not bot_jabber) to have the same behaviour in test mode