Add pseudo (though working, probably) code to logoutDone callback