trying to fix unstoppable main loop looping upon disposing of ClientEngine