Save crashes to a file