die() to throw new Exception