Fixed error 4108 when closing a pending order.