Add connected flag to allow smart disconnects on client
Version 0.1.6-alpha