Quit when the wayland socket is closed.

wayland-client sets errno to EPIPE when the wayland connection is
closed (int read_events(wl_display*) in wayland-client.c).

Change-Id: Ifc984edf2fa018460f783a3af39c02ff08164860
Reviewed-by: Andy Nichols <andy.nichols@digia.com>