Use die instead of croak to throw exceptions

Croak always insert a line telling the filename and the line number of
the caller. But when we throw an exception this line is spurious.
v0.007

  [Fixes]
  - Avoid the line telling filename and linenumber in the error
  messages.