What other connections are set up?When a closure is created, any variables in the local scope that are referenced by the closure must exist for the life of the closure. For example (Ruby follows) ...
def make_counter\n n = 0\n proc { n += 1; n }\n end\n\n c = make_counter\n\n p c.call # => 1\n p c.call # => 2
The context containing "n" must be kept around after "make_counter" exits, because the proc (closure) references and modifies n.