[Fix #1] Add onEnd callback when commands are executed
Merge pull request #2 from fabiendem/master

[Fix #1] Add onEnd callback when commands are executed