Ensure that settings persist after exit