Add Callback to Close and Install events

Added optional callback to the close and install events (available via the onClose and onInstall options).  Defaults to empty functions.

Mostly useful for tracking.