adds the file open exception handle