Need to close data files in write methods of clawdata.py