Prevent double logout event