Made cleanup do: end() destroy() and unref()
Including Michael's comments from review.
Bumping version.
Merge pull request #2 from jut-io/hanging-fix

Made cleanup do: end() destroy() and unref()