[PATCH 3/4] mf: Implement transition to closed state together with sink finalization.