fix(index.js): on stubby error, calling the callback should be the last action