Checking for the `STOPPED` state in the exception handler is a good idea.