* Fix high cpu usage * Use queue for shutdown * mypy fixes * formatting * missing import
register_factory