Replace RestClient exceptions with EventMachine exceptions in specs