Perhaps should be runtime.log("alert"...) rather than the JS alert? This could potentially just be logged, as we currently do with other unexpected failures.