3588622bd2
This way we can handle the IOException in the same place as in the java version, without throwing passing unchecked exceptions