Adds an optional callback function to alerts when being closed
Merge pull request #141 from Fragger/alert-callback

Adds an optional callback function to alerts when being closed