Murray wins long rally, holding on