Add CloseConfirmable interface

This interface is intended for UI components that get user input to deal
with unsaved state before closing.

With this we create an opt-in clean-up mechanism for close operations.