Aborting when there's still data to be written in the valid area of the window isn't a very graceful way to fail.