Wrap alert interactions in try/catch (fixes #30)