Shutdown properly on unload.
Add a client validation forward.
Mark some more missing natives as optional.
Minor tweaks.