No exit on free, null ptrs.

Removed exiting on a bad free.
Changed pointers to be null after being freed.