Trap BaseException in _cpwsgi.AppResponse. Fixes weird interacting test failure in test_3_Deadlocks (but only when other test_states tests run first).
@@ -275,7 +275,7 @@ class AppResponse(object):
self.iter_response = iter(r.body)
self.write = start_response(outstatus, outheaders)
- except Exception:
+ except BaseException:
self.close()
raise
