Should call timeout function when we can't connect to the site.

The timeout function should remove delayed event.