Unloading the QLibrary causes a crash on exit