Exceptions are better than exit().