fix hub lifetime management in IoC