BF: safeguard closing of log handlers + close in reverse order

otherwise there might be "stuck" handler in the queue. and closing
exceptions can occur -- even stock logging guards in recent versions
BF: do not shutdown logging until all jails stop -- so move into Server.quit()

Together with previous commit it should resolve failures with the server tests on python < 2.6
Merge pull request #1 from yarikoptic/servertestcase

Servertestcase -- resolving issues with logging while running on python 2.4 and 2.5