When it first came to his attention he had only the emails. Based on that he probably made the right call as who could have believed a Congressmen would have sent those IMs? Incredible. But with hindsight now I'm sure Hastert kicks himself for not probing further earlier on.
Hastart chased Foley out of the House WHEN he saw the IMs. Right then. He didn't wait.