Check error after command run