Changed abort() to exit().