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

You don’t need any libraries for the error to appear. Is an error thrown if you run this code?

void setup() {
  size(100,100,FX2D);
  exit();
}