Safe-guard closing of IndexReaders used in the global read-only StatementContext.

- Added CleanupService utility for cleaning up unmanaged resources when
  the GC collects them, if not cleaned up manually earlier.

co-author: Tobias Lindaaker