Catching IOExceptions.