Catch file open errors