Fixed Dealer::leave hanging issue