Catch error results from execute() and don't implode on non-arrays.

Needs proper error handling