Added method bool Closed() to interface IComponent.

This method will be invoked when the component is ABOUT to be closed.
The return value determines if this closing shall happen (true) or not (false).

This way a component can
- ask a user to save unsaved work (and cancel the closing)
- unregister from events it is observing, allowing it to get garbage collected this way