Fix netty transport.

1. The server who clears the transport shouldn't get the DISCONNECT message.
2. Fix the null pointer exception.
3. Fix the keep breaking tie problem.