Fix an issue where we don't have the rpc so we dont have to close it