Hello, you need to file the extension before it expires and have proof of that.FedEx waybill for example. You can't leave the US if you do a mail-in as you would then be considered to have abandoned your petition. Leaving the US and re-entering is obviously much quicker if you are close to a Port of entry.What
TN classification? Some are highly scrutinized.
good Luck