Implementation of reconnect to serverRMI.