Fix order to register call back function after UI is ready and put a
try/catch to handle SWT errors when browser starts