Check if tool.removeAllListeners esists before call
Check if tool.removeAllListeners esists before call

Some tools may not have `removeAllListeners` method, espetially those
which do not extend `EventEmitter`.

noseglid/atom-build,oli-obk/atom-build,sphaerophoria/atom-build