PMO-2491: write an exception file for every error case