Added more robustness and the ability to continually reloop and reconnect until node is shutdown.