Managing process errors when opening files.