small refactoring
properly recoding error statistics for crashing sessions
mentioning handler crashes