wrap some strange errors with try-catch