How about an even simpler option.
NSE has an option where you are able to go to their website and close all your open trades (across any broker) using OTP SMS linked to your number.
Just a 'Kill All' option (for options/futures).
Simpler to engineer. What say?