Added safeguard for "new FileInfo()" exceptions