Picard has a crash dialog that handles crashes to the main function, showing a dialog with exception information.
However, there are error cases where this is not triggered, as it e.g. happened in PICARD-2868. Register a global exception handler to handle these cases.