diff --git a/Main.hs b/Main.hs
--- a/Main.hs
+++ b/Main.hs
@@ -2,6 +2,7 @@
 
 module Main where
 
+import Control.Concurrent
 import Control.Monad
 import Data.Maybe
 import qualified Data.String.Class as S
@@ -76,4 +77,6 @@
 			either (\err -> error $ show err) pure result
 		) recipients
 	sendPresence presenceOffline sess
+	-- FIXME a workaround for https://github.com/l29ah/hsendxmpp/issues/1
+	threadDelay 1000000
 	endSession sess
diff --git a/hsendxmpp.cabal b/hsendxmpp.cabal
--- a/hsendxmpp.cabal
+++ b/hsendxmpp.cabal
@@ -1,6 +1,6 @@
 cabal-version:       3.0
 name:                hsendxmpp
-version:             0.1.2.5
+version:             0.1.2.6
 synopsis:            sendxmpp clone, sending XMPP messages via CLI
 description:         It aims to be a drop-in replacement regarding the CLI flags. It is user-friendlier, handles errors better and, unlike sendxmpp, it supports modern authentication and encryption schemes.
 license:             AGPL-3.0-only
@@ -18,7 +18,7 @@
 Source-repository this
   type:              git
   location:          https://github.com/l29ah/hsendxmpp.git
-  tag:               0.1.2.5
+  tag:               0.1.2.6
 
 executable hsendxmpp
   main-is:             Main.hs
