Stop crashing on exit
Get rid of warnings
Expose some network stuff to QML

Probably not the right thing to do, but easy for now.