Making setConnected protected again, adding setDisconnected to public methods so that that method can be used to flag the connection as disconnected.