Fixed alert window from closing the entire program