       .then (res) ->
         t.equal res.body, 'delete'
 
-        shutdown()
-      .then ->
+      .finally ->
+        shutdown()
+      .finally ->
         t.end()
 
 test 'any', (t) ->

      .then (res) ->
        t.equal res.body, 'method is DELETE'

        shutdown()
      .then ->
        t.end()

test 'error', (t) ->

            b: '2'
          body:
            hello: 'world'
          userAgent: 'integration test'
          ip: '::ffff:127.0.0.1'
          isGzipEnabled: true
          match:
