Check exit flag after linear programming.