This commit introduces try-catch statement to caputre
any errors during creation of distributions config
file.
PASS: Run software-controller-init.sh and check
user.log
Story: 2010676
Task: 51179
Change-Id: I78d8b9e9da5f28e622da72a4c7fb3b6897bb8020
Signed-off-by: sshathee <shunmugam.shatheesh@windriver.com>