Added foundation::die to replace assert's raise().