Add connected flag to Connection
Add connected flag to Connection

Check for connection in read/write.

samplecount/methcla,samplecount/methcla,samplecount/methcla,samplecount/methcla,samplecount/methcla,samplecount/methcla