dont deadlock during shutdown if a slot is frozen,
add code to dump stacktraces of all threads on exit,
fix wrong calculation of _valid_bid_cache and _valid_ask_cache
some minor refactoring in goxtool.py