Nikolay Sivov : mf: Implement transition to closed state together with sink finalization.