[refactor] Refactor of `primus.destroy` method