Fix minor thinks in lots of tests. Mainly compatibility problems with new version docker

Important commit https://github.com/jzupka/autotest-docker/commit/0cb718dc5fbb30f6cd902ff88224561d6c73a1c0 fixes problem with generator of names.
I don't think I have this change.  Though I don't like having naked catch-all excepts, they hide or confuse too many problems.  There's nearly always a better way, maybe ``try...finally...`` instead?