Try-catch-finally fix for false positive test