A general purpose dialog handler for unhandled javascript exceptions in WatiN