Making dump output error handler more selective