Fixes statement fail logging for statements

Alters the statement `execute_on` method to return a hash as expected in the failure scenario, and updates the `command` `execute_on` method appropriately.