close resultset after doing test query