Removing client output at end file