[backends/xml] Fix for new architecture
[backends/pycommon] Fix app dispose