Adding IOError handling when opening DICOM files.