Make clients exit orderly when there is no connection
diff --git a/clients/smoke.c b/clients/smoke.c
index 246e347..43226ad 100644
--- a/clients/smoke.c
+++ b/clients/smoke.c
@@ -267,6 +267,10 @@
 	int size;
 
 	d = display_create(&argc, &argv, NULL);
+	if (d == NULL) {
+		fprintf(stderr, "failed to create display: %m\n");
+		return -1;
+	}
 
 	smoke.x = 200;
 	smoke.y = 200;