add process exit support
comment the hooks module
Merge pull request #556 from luvit/feat/process_exit

add process exit support