added possibility for action on close

a new option has been added. it allows to defien a callback to be fired
when the message alert closes either by timeout or manually.