Index: uspace/srv/loader/main.c
===================================================================
--- uspace/srv/loader/main.c	(revision f5837524878dfa0cfbf12164f7b8144cee094f9a)
+++ uspace/srv/loader/main.c	(revision 8b6cd5cc7eb1fce2e87ead2a1403607213d545be)
@@ -341,4 +341,12 @@
 	async_answer_0(req, EOK);
 
+	/*
+	 * Wait for the hangup from the other side in order not to leave any
+	 * unanswered IPC_M_PHONE_HUNGUP messages behind.
+	 */
+	async_get_call(req);
+	assert(!IPC_GET_IMETHOD(*req));
+	async_answer_0(req, EOK);
+
 	DPRINTF("Jump to entry point at %p\n", pcb.entry);
 
