rpc fix selection key close reg