1. Fixed crashing when using parallel Python.
2. WIndow can be completelym hidden.