Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=59850 Ensure that the ResultSet is closed when enabling the StatementCache interceptor.