- restore WRITE_STATISTICS_NAME from execution context on restart
- don't assume output file is always present on restart (could be
deleted by previous execution if shouldDeleteIfEmpty flag was set)