You could reset the SV_ALGOVARS flag. They will then not be loaded. But that would not work for Z12 where you have no code access. Delete the broken .trd file and close the trades manually.