When closing a result handle, we don't need to read all server output but just up to the next result (if we hadn't already).  We also need to save the X-close command until later if there is still another result set active.
When closing a result handle, we don't need to read all server output
but just up to the next result (if we hadn't already).  We also need
to save the X-close command until later if there is still another
result set active.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb