Add use of NanEscapableScope as suggested by @kkoopa