Catch exceptions by reference.
Merge branch 'develop' into coverity-scan