Try/catch in connector