Nullify deleted pointers.

Undangles pointers everywhere by setting them to `NULL` right after deletion.