Replace IllegalStateException; still want to make it WriterException