Remove "throws IOException" from isClosed()