Close persistent connection if Lua retries.