Re-implemented reference counting for JobObject.