Fixed Exit button not being created

It will now show/hide appropriately instead of not being created and
thus throwing errors.