Fix for #1998

Moving "rpc" addition to transmission host string after exception