Update zsys.c

Add missing close