Fixed some problems related to saving event times on simulated mode or when aborting trial.