rpc fix nio close connection bug