beremiz

Fix bug in killing debug thread when closing Beremiz window
from python import *