feature exit and die function
Merge pull request #383 from netyum/master

feature exit and die function