Fix crash due to Eluna.

Eluna hooks were being called after Eluna was unloaded. Eluna will now
unload after the hooks have been called.