added try/catch block and added catch clause to better describe any
potential issues to sysout.