When bootstrapping fails, jenv files are now cleaned up.

https://bugs.launchpad.net/juju-core/+bug/1361680
I think we'd rather this be a named function that gets set to a variable, rather than an anonymous function.
It means that tracebacks, etc, will have the right function name, instead of just some anonymous func that we have to look at the line number to find its definition.