Try to fix resource sharing between reader/processor/writer