Promies gotcha za: http://bytearcher.com/articles/using-promise-then-callback-callback-misses-errors/
//Exception in success handler goes unnoticed
promise.then(callback, callback);
//This way exception in the success handler will be propagated to the correct place.
promise
.then(callback)
.catch(callback);