[sr-dev] git:master: htable: close db connection in case of mi cmd errors