MDLSITE-2882 look for anyting exceptional in output

Apart from looking for any exception, debugging, stack trace
along the execution of the script, we are also looking for
any outputed information not being part of the standard
progress report (lines of dots with some numbers and % at the end).

This should allow us to detect anything outputed incorrectly
with error_log() and others.