Dialog onClose callback

This fix adds the possibility to call a callback everytime the Dialog widget is closed.
I think there is a missing argument here: the `$unregisterListeners` method requires as an argument the scope under which listeners were registered. In this case it would be `$unregisterListeners(this)`.