Capture panic messages (closes #586)

So this is a possible solution.