close file writer in Camera driver