Fix occasional crash on exit because of statis network access manager

see https://bugreports.qt-project.org/browse/QTBUG-25789