Created more informative error messages if RPC connection fails or is refused