Get rid of active_connection for jsonrpc.
Should probably do the same for http.