close stdout, stderr