more robust logout pattern when dealing with routes protected with ensureSigndIn