IOException may indicate a blocking operation. Is this ok on this thread?