small fixes for closing resultset