close stdout instead of kill/terminate