detect a session has been manually stopped by user

is there a way to detect that user has overrode a scraping session and clicked stop.

I am in a loop and need to see that session was stopped using the "stop" button.

I can stop a session progamatically but I don't see where I can query that a session has been stopped manually.

Am I missing something subtle?

There isn't really a way, but

There isn't really a way, but you could add a script to run "always at the end" of the session that shows:

if (session.shouldStopScraping())
   session.log("Scraping session was stopped");