Fixes D* Lite's stopping problem when clear is called from the uI.