IE Close Warning?

Is there anyway to warn a user they are closing IE when they click the red exit button on IE?