Added functionality to all Exit buttons.