add exit(1) for terminating process once encountered non DLException, correct constants.