Add deactivate handler
Merge pull request #19 from atom/bo-deactivate

Add deactivate handler