fixbug for unittest cannot exit
 when disable close, unittest passed

 add a much simpler unittest RPC.ChannelClose to reproduce the
problem
 add new state for peer and fixbug