On both PC and Macs, when you run (eg) test5 and open an MrstkPlotFrame, if you close it with the OS's close window (an X) it will crash Matlab. I think this is because it has some links to data still in the Matlab workspace. Workaround is to frame.dispose or frame.hide