Log out on connection failure

(Why wasn't this here? wtf?)