Fixed unreachable IOE exception in Java 7