Give the user control over the lifetime of closures passed to C