If I clear the database and restart using the same machine, same configuration I cannot reproduce the crash. So there is a subttle interaction in this code and any existing DICOM file on disk.