Catch UnsupportedOperation.
Merge pull request #1516 from Lukasa/io

UnsupportedOperation errors