emit "finish" when, all chunk are sent