AIR flash.events.Event.CLOSING equivilant for a projector?

I am looking for an equivalent of the flash.events.Event.CLOSING event available in AIR applications. I have a projector and I want it to send a message to a socket on close so that another application can know when the user is done viewing the projector. Anyone know a possible way to do this?
Thanks!