Added connection: close header to stop tests hanging