Print stack trace.
[OE-4572] Don't validate patient ID until after preprocessing.
Don't attempt to send file if there are already errors.