Get rid of die() and replace them by catchable Exceptions