Cleanup and Qt5 switching before switching audio backend