implemented should_close properties for window