select demo shuts down properly