runner: improved check of output strings
runner: onTerminate must be copied