beremiz

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