Better error logging for unexpected session