Add timeout when checking if service is ready