safety check on keepAlive