correctly finalize digitizing when error occurs