Added try/catch around linking.