Fix flaky tests that use SftpServer (like SftpFileNameFilterTestCase) wh...

...ich fail randomly when stopping the server