Use Carp::croak instead of die when appropriate.