Add Close method to output