Use atom.onDidThrowError