Yes, I think most brokerages do something along those lines. Fidelity, for instance, will close out any itm or close to itm options at 3:30 on expiration day if your not funded enough for exercise.