[GEOT-4947]: Adding DisposeStopper wrapper
Merge pull request #614 from dromagnoli/GEOT-4947-12.x

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