Calling exit() using FX2D renderer doesn't stop program

Is an error thrown if you run this code?

NOT on windows 7 / processing IDE 3.4
YES on Raspberry ( see above )

possibly you tell us your working environment?