Completing client-publisher-subscriber loop