workaround for Jython 2.5 bug with sockets

tests gets stuck on my machine partway through unless using CherryPy
(not one request at a time) on Jython 2.5 and 2.7b3 due to socket left
open or  stuck.