Correctly record reason.
Sumatra parameter logging.
Fix capturing of stdout/stderr for external progs
Fix after_run plugin hook for run functions.