Put HttpServletRequest#logout() in separate try/catch block.