clean up
capture tasks status when framework restart & fix typo