Influence of noise on the quasi-homoclinic behavior of a laser with saturable absorber