spy/cli: refactor no_exception_handling handling