Fixes #20  cannot dispose of undefined

Everything is set up, @jdc0589 all you have to do is apm publish I think.