[GEOT-4947]: Adding DisposeStopper wrapper - Backport to 11.x