close queryexec