Remove button if window is closed.