workaround for exit_alt leaving script in a confused state. Discussion http://chdk.setepontos.com/index.php?topic=11538.msg113001#msg113001