Index: uspace/app/gfxdemo/gfxdemo.c
===================================================================
--- uspace/app/gfxdemo/gfxdemo.c	(revision 5fae1237429d6d7f6e5c59d4a0b9c9e56446a466)
+++ uspace/app/gfxdemo/gfxdemo.c	(revision 4fbdc3d4f4d1d992db668ffd58dad07f9d4a07db)
@@ -47,4 +47,5 @@
 #include <stdlib.h>
 #include <str.h>
+#include <task.h>
 #include <window.h>
 
@@ -437,4 +438,6 @@
 	gc = canvas_gc_get_ctx(cgc);
 
+	task_retval(0);
+
 	rc = demo_loop(gc, 400, 300);
 	if (rc != EOK)
@@ -475,4 +478,6 @@
 		return rc;
 	}
+
+	task_retval(0);
 
 	rc = demo_loop(gc, 400, 300);
Index: uspace/app/terminal/main.c
===================================================================
--- uspace/app/terminal/main.c	(revision 5fae1237429d6d7f6e5c59d4a0b9c9e56446a466)
+++ uspace/app/terminal/main.c	(revision 4fbdc3d4f4d1d992db668ffd58dad07f9d4a07db)
@@ -58,4 +58,5 @@
 	}
 
+	task_retval(0);
 	async_manager();
 	return 0;
