Delete networkAccessManagerFactory when we delete the engine
As the docs (https://doc.qt.io/qt-5/qqmlengine.html#setNetworkAccessManagerFactory) state, the engine does not take ownership of the factory. Consequently we have to clean it up ourselves.