fixing exit so it cleans up term...