executor: Handle scanner errors from running commands
Created by: eseliger
Extracted from https://github.com/sourcegraph/sourcegraph/pull/26753 as this seems lower-risk.
Created by: eseliger
Extracted from https://github.com/sourcegraph/sourcegraph/pull/26753 as this seems lower-risk.