'closed' event function is fired multiple
Merge pull request #16 from Jako/patch-1

'closed' event function is fired multiple