Activity share: changed error handling