Handle file open errors