Deal with trying to read from closed files

...and some simple tests at the end of the file