Failing test case for PCT-1045: Timeout closing websocket.
Fix PCT-1045 by settings write deadline before Close(), also always reset deadlines in other funcs.
Merge pull request #102 from percona/pct-1045-fix-disconnect

PCT-1045: Timeout closing websocket