add `end` event for last callback

It's an easy way to add `end` event, and pr for #19