Add error handler when command execute failed