To disconnect current connection, either serial or UDP:
obj.Disconnect();
To delete MATMAV object, use:
obj.delete();