Added optional crash reporting