Initialize client, wrap client.publish and client.subscribe, better logging