The quit command terminates the debugger session.
quit
The quit command allows you to exit the debugger.
q is an alias for the quit command.
(fgldb) quit