[sr-dev] git:5.0:23783b89: htable: close db connection in some error cases for rpc command