emit finish event when done
Merge pull request #4 from FredyC/finished-event

Emit finish event when done