Certain Minecraft versions don't close cleanly

inxi -Fxza

When I close certain Minecraft verions (such as Alpha 1.1.2_01 or modded 1.12.2) this appears in my log:

AL lib: (EE) alc_cleanup: 1 device not closed
pure virtual method called
terminate called without an active exception

Then, the game process stays alive until I kill it with SIGKILL.

Both of these versions have 1 thing in common: They both use Java 8, and none of this happens on Windows.

I do not have NVIDIA hardware, I use Xorg, and Java crashing when closing minecraft java edition, happens but with SIGSEGV instead when I close modded 1.12.2 on Linux specifically.