Some minor cleanup
Uncommented some lines in HandleMsg() and removed other lines that
were only there for testing. Made sure that sending "Shutdown" from
client still results in the server not leaking memory.