Add basic handling of rejected promises.
Add basic handling of rejected promises.

For now just using console.log to output the error.
There are likely more sophisticated ways to handle the rejected
promises, but this at least gives a start.

ndufreche/sane,kriswill/sane,kriswill/sane,ndufreche/sane,artificialio/sane,devinus/sane,codepreneur/sane,sane/sane,artificialio/sane,devinus/sane,codepreneur/sane,imfly/sane,sane/sane,IanVS/sane,imfly/sane,IanVS/sane