Correct an uncaught exception when the object was destroyed without being stopped first.