change shell window exit action