Ensure the destroying order of static variables

To fix issue #52
i believe to do what you want, this would need to be initialized as a pointer to ensure it isn't freed at all.