Turned client into a class.
UI only disconnects when its needed.