handle NPE when shutting down
cosmetic cleanup
more simplifications in ErlRuntime
update BrowserInformationControl