Modified destroy method.