When the exception is thrown, RAMTRJ recording is finalized and closed, however ramsnap file is not saved and it may result in divergence. Either the ramsnap file should also be stored, or the appropriate error message should be shown (instructing how to use the trajectory mode to fix the RAMSNAP file).
The best way to resolve it more generally is to validate coherence of all output data: RAMTRJ, XYZ recording, RAMSNAP and observable snapshots at the start of the simulation to ensure that none of them diverged.
When the exception is thrown, RAMTRJ recording is finalized and closed, however ramsnap file is not saved and it may result in divergence. Either the ramsnap file should also be stored, or the appropriate error message should be shown (instructing how to use the
trajectory
mode to fix the RAMSNAP file).