Refactoring the base node plugin destroy method to cleanup if machine has already been deleted.