Wrapping harness in a try/catch block to avoid compilation problems