Add crash detection and reporting.