Split _send_thankyou() into two functions to better handle quitting