all types that extend agent
must be nulled no matter if global or local variable, because agent
is reference counted, and until at least one variable references given object, its handleid wont get recycled(4 bytes leak per object)
according to thread provided by Chobibo, if you dont null agent
immedietally after you destroy it, it will leak