(internal) Finalizes the object if deleted. If a MATLAB connection is opened, it is closed.
Note that you should never have to call this method explicitly. It is
called automatically whenever the object is removed from memory
(by the garbage collector).