added some signal handlers to prevent signals from interfering with profanity when getting password
moved signal handlers to clean up code
set a nice title (instead of empty) on shutdown
add ui_goodbye_title to tests