Use either the detach or the disconnect command to break the connection between the IDB and the remote agent:
When you have finished debugging the remote program, use the detach command to free it from IDB control. In most cases, the program will resume its execution, but this depends on a particular gdbserver. IDB can connect to another program, after detach is issued.
detach_remote_command
: detach
The disconnect command behaves the same as detach, except the program is not resumed. The program will wait for IDB (this instance or another) to reconnect to continue debugging. IDB can connect to another program after disconnect is issued.
disconnect_remote_command
: detach