define an _unexpected routine to handle unexpected command failure.