Not sure where you'd putting the logic. In custom code, you could keep track of a customer's orders in your own table by hooking into the order submission process (hook_order() on the 'submit' $op). This will help you not have to worry about orders that never make it out of checkout.