closed rpc port when deleting RFModule