bordered windows now close when exit button is pressed