Fixed the async publisher example to work with reconnections