Did you put the 40D on a different lens to make sure it is still working fine?
I think I would send the lens in to Canon and have it checked out.