added try/catch blocks
Merge remote-tracking branch 'origin/master'