FIX: missing globals clean-up on finishing compilation job.