Add reconnecting when factory fails to connect