refactor(errors): refactor the way errors, offline, & queued ops are handled