daemon: zfile: call pclose instead of fclose

fp was opened with popen, so close it properly.