Fixed missed exit().