Fix `open in browser` functionality by handling exceptions