added python error catching to ConnectionBinding, to prevent crashes