try not to throw uncaught exceptions in the bootloader
support lucos.js being loaded with key of _lucos