check behavior when command fails