add a destructor to netstore to make it RAII compatible