added the ability to CTRL-C out when connecting or listening