Cleanup of a cli stdout