So with the latest commits, the only error still remaining is that the quitting of the application somehow crashes the app when it tries to release some data on the stack(a free function call), apparently.
Unfortunately, I currently have no clue why this is actually happening. All other platforms still run without any visible issues.