Use https://doc.rust-lang.org/std/panic/fn.set_hook.html to catch any panic, and dump something to disk. Perhaps also fork and start a separate "crash handler" binary that shows a message to the user, and directs them to support channels/opening a bug report.