Correct sess error handling