Making exit button work again.