If your bet is partially matched at the time the market closes, the unmatched part of your stake will be returned to your BetConnect account balance.
If your bet remains completely unmatched, you will receive your stake back in full, which will be credited to your BetConnect account balance.