Update logout logic to play nicely with Django CAS module.