added a test client
fixedshutdown sequence
fixed client
appServer fixes