fix(store): reject promise on errors