OS-2815 watch for on('close') instead of on('exit') to ensure we get all zfs data