Added an accessor for `on_stopped` callback