debugger-agent: handle listen errors properly