Layer now prevents errors in the Function being run from destroying the nytowl instance