adds raising of NotConnected error on reading or writing