Dynamic door-statistic
The door-statistics (crossings and transitions) are written at the end of a simulation. If the simulation fails at an advanced point of time you do not have any results. Hence it could be better to write and update the door statistics dynamically, like we do it for the trajectories.