I found in crashpad there are
InstallTerminateHandlers HandleTerminateSignal
but I did not find a way how to use them. My program is that I use crashpad to send minidumps when a crash occurs but I have a suspicion that a minidump which is corrupted is also sent in a case when my app is terminated and I would like to filter them to know that this is not a bug in my app.