added CanBeClosed to WindowBase class