add event hook for clean shutdown
add todo
Merge remote-tracking branch 'origin/master'