Cleaned up memory object destructor callbacks.
Implemented event callbacks.