Fix bug in Auth Guard logout method.
Merge branch '4.0'