make sure to free the method cache table when we free the class