Add a timeout to make the keep-alive task properly work