Added a flag to prevent window closing and a flag to prevent NotificationClass objects from freeing.