adding clean exit