about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/rainbows/ev_core.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb
index a19648e..f90e1e1 100644
--- a/lib/rainbows/ev_core.rb
+++ b/lib/rainbows/ev_core.rb
@@ -35,7 +35,8 @@ module Rainbows
         ERROR_500_RESPONSE
       end
       write(msg)
-      quit
+      ensure
+        quit
     end
 
     # TeeInput doesn't map too well to this right now...