Fixes #140 - Event propagation should be stopped on the close event