Added crash logging