diff --git a/Web/App/HTTP.hs b/Web/App/HTTP.hs
--- a/Web/App/HTTP.hs
+++ b/Web/App/HTTP.hs
@@ -92,6 +92,7 @@
       void $ killSockets
       teardownFileCache cache
       destroyState st
+      exitImmediately ExitSuccess
 
 -- | Serve an HTTP2 application over TLS, obeying 'settingsInstallShutdownHandler'.
 -- This setting is ignored in WarpTLS due to a bug (gasp!). See
diff --git a/webapp.cabal b/webapp.cabal
--- a/webapp.cabal
+++ b/webapp.cabal
@@ -1,5 +1,5 @@
 Name:                webapp
-Version:             0.1.0
+Version:             0.1.1
 Synopsis:            Haskell web scaffolding using Scotty, WAI, and Warp
 Homepage:            https://github.com/fhsjaagshs/webapp
 Bug-reports:         https://github.com/fhsjaagshs/webapp/issues
@@ -20,7 +20,7 @@
 
 Library
   build-tools:       hsc2hs, happy >= 1.19, alex >= 3.1.4
-  ghc-options:       -Wall -O2
+  ghc-options:       -Wall
   Exposed-modules:   Web.App
                      Web.App.Assets
                      Web.App.Cookie
@@ -73,7 +73,7 @@
   default-language:  Haskell2010
   main-is:           Main.hs
   hs-source-dirs:    example
-  ghc-options:       -threaded -Wall -O2
+  ghc-options:       -threaded -Wall
   build-depends:     base,
                      transformers,
                      text,
