Using fbsql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution.
fbsql_close() closes the connection to the FrontBase server that's associated with the specified link identifier. If link_identifier isn't specified, the last opened link is used.