appearance: fix mismatch XOpenDisplay and XCloseDisplay invoking.

Change-Id: I75bf245e55223e4d664b00b863aa4ce7e31a5001