Make X on option windows work like cancel button.