tweaked stop code to remove the listener object from memory when it is destroyed