Fixed race in RPC. _done flag was being set before setting exception.