fixes #28, fixes #26 closing result sets and statements underlying the SqlIterator.java only if they have not been closed before