tidy up listener handling

git-svn-id: http://svn.vuze.com/public/client/trunk@40742 c2c1b7af-1477-405b-86ee-8aefd1fc4dd2