Fixed possible crash

Removed event listeners on add-in shutdown