Use die!() macro instead of fail statement

fail statement is removed from the language specification.
examples: Remove the use of oldcomm