Added custom failure class for optional redirecting to logout url upon timeout