cleaned up DOSBox thread implementation