Add `end` event for `MagicHelper`

Resolved #25