Fixed the reset seg fault problem

On teardown, cleared the vector of objects that should be destroyed
with the reset