Completed the destructor method.