don't write before FileWriter is ready