Fixing logging of logout event.