Rise 'not connected' exception when appropriate.