fix for tts leak when closing preview mode