Check that we were able to open the files before using them.