Try explicit begin..rescue..else..end in command_succeeded.