Upgrades, add exceptions logging

Closes-bug: #1338530

blueprint upgrade-to-5-0-1

Change-Id: I7bffb7268cf99335646afe2a6e6629538b14ddd3
Merge "Upgrades, add exceptions logging" into stable/5.0