The system will automatically close expired contracts two business days after the expiration. This is because we need to wait for the contract price to settle.
You can control how the system handles the expiring contract in Settings → Trades → Auto Expire Options Contracts, where you can choose between ‘Expire Worthless’ or ‘Expire In The Money’.