Fix RPC Ping and logging from inject scripts