bug fix: LiveServerTestcase KeepAlive connections

keepalive connections would result in the test server not being
cleaned up properly at the end of the test which resulted in
incorrect flask apps being used in subsequent tests.