Adding error logging to track down transient bug.