Fixing bug for duplicate notifications.

Once a client is terminated, we need to clear out the notfications hashmap.