Merge pull request #1 from samcook/master

Add deinit handler
latest commit 117782869e
@jpgarretson authored