Event aquery_close_after
This event is called after the query is executed. It can be used to free resources that might have been reserved in the code associated with the query. In this event, the tables opened have already been closed.
Example
$CLOSE_MY_QUERY
Close Local File MYTABLE : # If it has been opened in an event
Return