replaced die()