add log for end of flow process