Added debug setting that prevents cleanup. Implemented functionality in ...

...ros

but may be useful in other packages.