Adds missing close callback.
Merge pull request #10 from johanneswuerbach/close-callback

Adds missing close callback.