Fix issue where errors weren't resetting.
Fix SyncAdapter to correctly propigate ajax promise rejections