Fix Close method of Dataspace

The finalizer interfered with the Close method.