portal-update: log errors
portal-update: retries and delay options
Merge pull request #330 from wardi/master

portal-update: add error logging and retries + delay options