socket should be disconnected when using namespace