Attempt to reinitialize memory events in case it wasn't properly closed 

Right now if an events app crashes and doesn't close the event channel, the domain has to be restarted in order to be able to attach to the events channel again. This reinitialization works in some cases without having to restart the domain.