add fault tolerance to publishing messages