freeswitch/agent: report errors and do not process commands in case of failure (first attempt at #42