Moved the delay functions to the Gravity Forms 'gform_pre_submission' filter, to make sure the export action are removed before execution.