added some checks to prevent null interaction log folder from crashing
the system