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

Yes, calling exit(); anywhere causes the error.