[BUGFIX] destruction of restio object at the end of queries to avoid memleaks.