- added a unittest
- added flags, there is still hard crash (without traceback) on both Py2 and Py3 when box is closing