Fixed exists not closing resultset bug