LPS-44503 Move the listener registration to the right place
LPS-44851 TaskQueue put notification race condition causes task delivery failure leads to threadpool threads starvation