if (exists $pagestate{$page}{$id}{R}) {
if (defined $pagestate{$page}{$id}{R}
and $pagestate{$page}{$id}{R}->is_started()) {
$pagestate{$page}{$id}{R}->stop;
}
if (exists $pagestate{$page}{$id}{R}) {
if (defined $pagestate{$page}{$id}{R}
and $pagestate{$page}{$id}{R}->is_started()) {
$pagestate{$page}{$id}{R}->stop;
}