thread sync bug fixed: thread continued saving frames after being
canceled