remove all carriage returns at the end of die calls, to get error lines