Changed the delegate to be the custom CDVAlertView class itself instead of the plugin. The plugin dies with the web view, so if the alert is displayed and the web view (and the plugin) dies in the mean time the delegate being the CDVAlertView avoids the application to crash.
Rollback the imports change.
Merge pull request #1 from pentateu/delegate_change

Changed the delegate to be the custom CDVAlertView class itself instead ...