Pass session data back in RPC responses and fix non `Error` instance failures in replies.