Support discarding on error