Do not send or receive negative numbers, might catch potential stack corruption or bad code.
A bit more logging/indentation stuff.
Check header consistency more thoroughly.
Do not cleanup global allocations if threads are still active.
Remove uninitialized buffers as source of entropy.
Small cleanups of the PRNG seeding code.