         'This package has deprecations and is not installable.'
 
   handlePackageEvents: ->
-    atom.packages.onDidDeactivatePackage (pack) =>
+    @disposables.add atom.packages.onDidDeactivatePackage (pack) =>
       @updateDisabledState() if pack.name is @pack.name
 
-    atom.packages.onDidActivatePackage (pack) =>
+    @disposables.add atom.packages.onDidActivatePackage (pack) =>
       @updateDisabledState() if pack.name is @pack.name
 
-    atom.config.onDidChange 'core.disabledPackages', =>
+    @disposables.add atom.config.onDidChange 'core.disabledPackages', =>
       @updateDisabledState()
 
     @subscribeToPackageEvent 'package-installing', (pack) =>

      false

  detached: ->
    @packageManagerSubscription.dispose()

  loadCachedMetadata: ->
    @client.avatar ownerFromRepository(@pack.repository), (err, avatarPath) =>

_ = require 'underscore-plus'
{View} = require 'atom-space-pen-views'
{CompositeDisposable} = require 'atom'
shell = require 'shell'
marked = null
{ownerFromRepository} = require './utils'
