Fixed __del__ bug when class does not get completely initialized.
Fixed __del__ bug once again.