Update file error handling
We now go to our error handling cases if we run into an IO Error as well as an OS Error