small bugfixes 

return code handling and including a connection to run_commands during --do-execute