in reply to is there a way to avoid dieing ?

See: No::Die.