Adding error handler.

Stop completing when a error happen. And tell company this backend won't
complete anything. Please try next backend.

signed-off-by: Madper Xie <madper.xie@canonical.com>