This is an outcome from Bug 1413827 comment 8. Next steps I think we should re-factor the code and split it up into: a) code which cleans up the log files in order to get to a line we can match on b) code which tries to detect the failure and/or panic (PanicDetector and InstallFailureDetector are pretty much doing the same thing atm) c) code which produces a useful error message for the user d) code which stores the block