workaround for bug in new versions of matlab which makes ds sometimes disappear when exit is called; track deleted files; bugfix for waitforstart becoming permanent