Error dump management

Closes #214