Fix netty transport.

1. The server who clears the transport shouldn't get the DISCONNECT message.
2. Fix the null pointer exception.
Limit the size of the pending requests.