Add try/catch helper to fix #148