oleg writes: > It seems you don't need to store the whole state in MVar: > it's enough to store a `clean-up' action. Yes, that is good advice, I'll do that. Thank you, Oleg. Peter