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

It seems that there were plenty of changes from 2.5 to 2.6 in standard logging guarding against many such cases like writing or closing already closed handlers.  Moving shutdown all the way to quit after stopping all the jails seems to resolve issues/;.  Also found that removal of handlers was in incorrect order -- so fixed that and added .flush() just in case ;)

how does it look? if good -- merge to yours (or fast-forward manually) and update you PR -- I will merge it