#48 osx/qt5 crash fix on app exit