cleanup stdout