The detach command closes the TCP connection of a remove debug session.
detach
The detach command must be used to terminate a remove debug session, by closing the debug TCP connection.
(fgldb) detach