add error handling for XML files with invalid subsession structure, i.e., a different number of <startSession> and <stopSession> markers.