Use delete instead of setting teh class to null