Diffusion limited first contact of the ends of a polymer: Comparison of theory with simulation