Server closes politely. Added skeleton code.
I spent a while trying to improve readability for older Server end protocols with the helper methods, but there were problems with tests so I reverted back to the ugly methods and unfortunately that's where the pas half hour went.