[GEOT-4947]: Adding DisposeStopper wrapper - backport to 12.x