Discard the last line properly.