Revert part of f438760bff27 since the exception is now an IOException.