Better logging of commands.

You could tell something went wrong, but not what.