Unreference headers properly