diff --git a/src/mode/message.c b/src/mode/message.c
index 51cdd77..3c621fc 100644
--- a/src/mode/message.c
+++ b/src/mode/message.c
@@ -51,6 +51,7 @@ void message_execute_command(xmppc_t *xmppc, int argc, char *argv[]) {
   } else {
     logError(xmppc, "Befehl unbekannt");
   }
+  sleep(10);
   xmpp_disconnect(xmppc->conn);
 }
 
diff --git a/src/mode/openpgp.c b/src/mode/openpgp.c
index c200c03..efece9c 100644
--- a/src/mode/openpgp.c
+++ b/src/mode/openpgp.c
@@ -63,6 +63,7 @@ void openpgp_execute_command(xmppc_t *xmppc, int argc, char *argv[]) {
       logError(xmppc, "Unbekanner Befehl: %s\n", argv[0]);
     }
   }
+  sleep(10);
   xmpp_disconnect(xmppc->conn);
 }
 
diff --git a/src/mode/pgp.c b/src/mode/pgp.c
index 105a550..26ac252 100644
--- a/src/mode/pgp.c
+++ b/src/mode/pgp.c
@@ -65,6 +65,7 @@ void pgp_execute_command(xmppc_t *xmppc, int argc, char *argv[]) {
       logError(xmppc, "Unbekanner Befehl: %s\n", argv[0]);
     }
   }
+  sleep(10);
   xmpp_disconnect(xmppc->conn);
 }
 
diff --git a/src/xmppc.h b/src/xmppc.h
index 2ddd3c7..c9bc403 100644
--- a/src/xmppc.h
+++ b/src/xmppc.h
@@ -48,6 +48,7 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include <strophe.h>
+#include <unistd.h>
 
 #define ANSI_COLOR_RED "\x1b[31m"
 #define ANSI_COLOR_GREEN "\x1b[32m"