logout after disconnect, unsubscribe after disconnect