Fixed restoring title.
Support close program.