- close the SegmentationResult in a finally block
- close the ResultSet in a finally block
add logs (at info level) to have a better global view of segmentation progress