Add print of file open/close for debugging