Fix error dump not dumped on memory problems