Rendering crashes, because audio-engine is not stopped properly

When using TE::Renderer::renderToFile, we get an Assertion in NodeRenderContext:
TRACKTION_LOG_ERROR(“Rendering whilst attached to audio device”);

The audio engine does not deinitialize properly. It keeps trying to process, whilst being partially deinitialized.

Is this a known issue? What could be wrong here?
Any help is appreciated on this issue!

Calling m_edit->getTransport().freePlaybackContext(); before Tracktion::Engine::Renderer::renderToFile fixed the issue in our case

I think it should do that automatically but maybe that fix hasn’t made it over to develop yet.
We’re currently working on a big update that will be released in the next few months.