Fixed a bug in net_cleanup()

Successive net_init() and net_cleanup() calls produced a segfault