move keepalive cancel to new retry function for extend/gun#16