virtual void OnClose();
OnClose is called when "UI" closebox is pressed. Default behavior triggers program shutdown.