Fix bug of no increment of event index in ProcessDeparture
Using argv to get the filename