Added a missing throw IOException.