~ fixed bug: disconnect before network creation leads to null pointer