MOSYNC-3106. Added try/catch blocks.