Make logging configurable
Fix ControlTimeout

Needed write deadline as well to work.