Made QueuedInterruptMutex and RenderThread exception safe + minor stuff