Windows audio and mesh crash

These are more workarounds than solutions. They stop the crash and print an error message, but there is most likely a larger underlying problem that I have yet to find with both.