added reconnection for errors