Update frame.clj

Modified the logic in the no named function as the argument of 'addCloseButtonListener' method to call the custom logic of IAppPane close method when the x button on the tab is clicked.