Check for null pointer; set thread name
Add File->Exit menu item