added retry mechanism to ssh2_exec