fix stopping tests on jython (not windows)