Remember to close the opened file when we're done with it.
(#299)