Propagate Erlang client API change
Revert part of f438760bff27 since the exception is now an IOException.
Merge bug 24094