diff --git a/Main.hs b/Main.hs
--- a/Main.hs
+++ b/Main.hs
@@ -71,3 +71,5 @@
 			let roomJid = fromJust $ jidFromTexts roomName roomServer $ Just $ S.toText $ oResource opts
 			joinMUC roomJid Nothing sess >> pure ()
 		sendMessage ((simpleIM parsedJid $ S.toText text) { messageType = oMessageType opts }) sess >> pure ()) recipients
+	sendPresence presenceOffline sess
+	endSession sess
diff --git a/hsendxmpp.cabal b/hsendxmpp.cabal
--- a/hsendxmpp.cabal
+++ b/hsendxmpp.cabal
@@ -1,5 +1,5 @@
 name:                hsendxmpp
-version:             0.1.2.1
+version:             0.1.2.2
 synopsis:            sendxmpp clone, sending XMPP messages via CLI
 -- description:
 license:             OtherLicense
@@ -18,7 +18,7 @@
 Source-repository this
   type:              git
   location:          https://github.com/l29ah/hsendxmpp.git
-  tag:               0.1.2.1
+  tag:               0.1.2.2
 
 executable hsendxmpp
   main-is:             Main.hs
