Only close handles that are set to a valid handle value
Handle leak fix for leaked token handle, avoid double close
Merge pull request #41 from opscode/adamed/mixlib-25

MIXLIB-25: Only close handles that are set to a valid handle value