and releases (also from main thread) the SDL's resources on application closure by calling: SDL_Quit() For performance reason (the main thread makes already a lot of work) the SDL_PumpEvents() was ...
On many of my Paper 1.12.2 servers, the following error occurred, but on other servers such as 1.21.8 servers, this error did not appear.