Update logout handler