Minor improvement to error handling.
Added success message output.
Updated success message after configuration update.