Add error handler to os-refresh-config

Previously on error the program simply exitted. This will allow script
writers to write error handlers to be called whenever any phase fails.

Change-Id: I3f8025663700192e9d8132a0e9122b4e0085ebbd
Merge "Add error handler to os-refresh-config"