Fix bug 1047018: Track successful log in/out

Right -- I'm not saying to axe the try/catch, I'm just trying to avoid execution of the block if it's not needed because try/catch is bad for perf.