handles ctrl+C when client fails to connect