Moving WriterThread to own file