improved error reporting on session saving