Fix crash on exit in SDL builds and possibly others.

This was caused by NativeShutdown getting called twice.

Native* functions should not be called by the app directly, they should
always be called by the platform abstraction. Dunno what I was thinking
here.