Emit 'end' when complete

This allows integration with other plugins that require this event.