Only allow error to be called once. This prevents a loop where error() calls exit() which in turn triggers another call to exit().