todo check for MATLAB process in __del__()