ensure bot is restarted in all cases