Ensure user is logged out when client is authorized by pre-authorization event

When the pre-authorization event authorizes a client, the code that logs the user out is skipped.

This patch ensures the user is logged out in the above situation as well.