Fixing a bug in the listners.

When the activity is closed it's listener's must be removed from the listner's list