destroy the rpc on close
2.0.4