Write event and run number
Cleanup