Error handling for shell execute action