Make sure that resultset from any SQL query is closed in the finally {} block so
that it always gets closed, even when there is an exception.