To close a connection, use the following statement:
EXEC SQL DISCONNECT [conexão];
The conexão can be specified in the following ways:
nome_da_conexão
DEFAULT
CURRENT
ALL
If no connection name is specified, the current connection is closed.
It is good style that an application always explicitly disconnect from every connection it opened.