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

With

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

…I see the error

Not on FX application thread; currentThread = JavaFX Application Thread

on macOS Sierra 10.12.6, MacBook Pro 13" 2016.

@Sarah, have you considered reporting this to Issues · processing/processing · GitHub