Lambda
Improve error handling so that unhandled errors are at least logged and there is some protection for exception cycles.