Added reconnect mechanism

Added automatic reconnection mechanism for the EMDR network: This greatly increases the reliability of node-43  when it is connected to unstable networks.