Handle die() in closures