Andre, you should consider using a modified factory framework where all objects in Phoenix add themselves to a list and upon the application existing it automatically cleans up any that were forgot and writes it to a log. That way devs have a quick and easy one stop to see what they forgot to free . I do this in JS and it works like a charm. Especially since in JS many of the objects are created in a script and can easily be lost in the shuffle.