closeOutputFile is now called when the raspivid process ends