listen to end event instead of exit
bump to version 0.2.4