corrected executed to be more robust if connector execution failed