catch js exceptions on boot

master -> merge
v1-tarin -> not tested

Errors while we are booting the device are preventing us to run build until the issue is fixed catch the error and try to run the build