Fix bug where if the file was not found then it would try and close the file anyways. This would shut the entire app down!