diff --git a/Tapeti/Connection/TapetiClient.cs b/Tapeti/Connection/TapetiClient.cs
index 04cd078..b23038e 100644
--- a/Tapeti/Connection/TapetiClient.cs
+++ b/Tapeti/Connection/TapetiClient.cs
@@ -820,7 +820,7 @@ namespace Tapeti.Connection
}
finally
{
- capturedConnection?.Dispose();
+ capturedConnection.Dispose();
}
}
diff --git a/Tapeti/Tapeti.csproj b/Tapeti/Tapeti.csproj
index 2ba6a69..67eaba9 100644
--- a/Tapeti/Tapeti.csproj
+++ b/Tapeti/Tapeti.csproj
@@ -25,8 +25,7 @@
-
-
+