[feature] Added a destroy function to cleanup Primus #26