check pointer in stop method of opcuaserver