Better way to implement the reconnection mechanism on the publisher
Getopt used also on the virtualiser