Exit properly