gdbstub: Handle errors in gdb_accept()