Zero dispatcher structure before using.
Fix timeout error message.
Some fixes to buffered IO.