improve zemomq close workflow