[PDI-9593] MongoDB input's sampling process does not close the connection used to perform the sampling.