Use readline in the remote debugger client and also have it try to connect repeatedly for two seconds before giving up