Custom panic hook with bug report link
Set the panic hook to write to stderr and abort the process when a panic happens.
Set the panic hook with a closure to be called. The closure receives the panic message.